package com.city.repository.report;

import com.city.domain.report.CtCount;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: 李顺时
 * @Description: 专业部门总体综合评价表
 * @Date: Create in 11:50 2018/9/12
 * @Modified By:
 * */

@Repository
public interface CtCountRepository extends JpaRepository<CtCount,Integer> {


    List<CtCount> findAll();


    @Query(value = "SELECT * FROM ct_count limit ?1,?2",nativeQuery = true)
    List<CtCount> findByPageAndLimit(Integer page,Integer limit);
}
